package artid.com.arttogoa.parser;

import java.io.Serializable;
import org.json.JSONObject;
/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：ArtistWorkInfoParse   
* 类描述   ：艺术家备案动态资讯数量+系统消息是否有未读消息   
* 创建人   ：耿卫斌   
* 创建时间：2016-6-23 上午10:59:36   
*
 */
public class ArtistWorkInfoParse extends AppItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private String trendsnum;//动态数量
	private String newsnum;//资讯数量
	private String recordnum;//备案数量
	private String follownum;//粉丝数量
	private String is_auth;//认证状态(0未认证，1已认证，2认证中，-1未通过)
	private String is_pushread;//推送是否已读（0:没有未读消息 1：有未读消息）
	private String goodsnum;//艺术品出售数量
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		trendsnum = obj.optString("trendsnum");
		newsnum = obj.optString("newsnum");
		recordnum = obj.optString("recordnum");
		follownum = obj.optString("follownum");
		is_auth = obj.optString("is_auth");
		is_pushread = obj.optString("is_pushread");
		goodsnum = obj.optString("goodsnum");
	}
	public String getTrendsnum() {
		return trendsnum;
	}
	public void setTrendsnum(String trendsnum) {
		this.trendsnum = trendsnum;
	}
	public String getNewsnum() {
		return newsnum;
	}
	public void setNewsnum(String newsnum) {
		this.newsnum = newsnum;
	}
	public String getRecordnum() {
		return recordnum;
	}
	public void setRecordnum(String recordnum) {
		this.recordnum = recordnum;
	}
	public String getFollownum() {
		return follownum;
	}
	public void setFollownum(String follownum) {
		this.follownum = follownum;
	}
	public String getIs_auth() {
		return is_auth;
	}
	public void setIs_auth(String is_auth) {
		this.is_auth = is_auth;
	}
	public String getIs_pushread() {
		return is_pushread;
	}
	public void setIs_pushread(String is_pushread) {
		this.is_pushread = is_pushread;
	}
	public String getGoodsnum() {
		return goodsnum;
	}
	public void setGoodsnum(String goodsnum) {
		this.goodsnum = goodsnum;
	}
	public ArtistWorkInfoParse() {
		super();
	}
	public ArtistWorkInfoParse(String trendsnum, String newsnum,
			String recordnum, String follownum, String is_auth,
			String is_pushread, String goodsnum) {
		super();
		this.trendsnum = trendsnum;
		this.newsnum = newsnum;
		this.recordnum = recordnum;
		this.follownum = follownum;
		this.is_auth = is_auth;
		this.is_pushread = is_pushread;
		this.goodsnum = goodsnum;
	}
	@Override
	public String toString() {
		return "ArtistWorkInfoParse [trendsnum=" + trendsnum + ", newsnum="
				+ newsnum + ", recordnum=" + recordnum + ", follownum="
				+ follownum + ", is_auth=" + is_auth + ", is_pushread="
				+ is_pushread + ", goodsnum=" + goodsnum + "]";
	}
}
